package cn.sdormitory.morningExercises.entity;

import cn.hutool.core.date.DatePattern;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author : yy
 * @date: 2024/9/20 9:52
 * @description:
 */
@Data
@TableName("morning_exercises")
public class MorningExercises implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId
    private Long id;

    private Long classId;

    private Long studentId;
    
    @TableField(exist = false)
    private String studentName;
    
    @TableField(exist = false)
    private String className;

    private Integer type;

    private String registrantUser;
    @JsonFormat(pattern = DatePattern.NORM_DATE_PATTERN, timezone = "GMT+8")
    @DateTimeFormat(pattern = DatePattern.NORM_DATE_PATTERN)
    private Date registrantDate;
    private Date createdTime;
    private Date modifyTime;
}
